@charset "UTF-8";
/**
 * 权限列表页面样式
 * RightList组件的样式定义
 */
/* 权限列表容器样式 */
.right-list-container {
  padding: 20px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 顶部操作区域样式 */
.right-list-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.right-list-header .right-title {
  font-size: 18px;
  font-weight: 500;
}

.right-list-header .right-actions {
  display: flex;
  gap: 10px;
}

/* 表格样式调整 */
.ant-table-wrapper .ant-table-thead > tr > th {
  background-color: #f7f7f7;
  font-weight: 500;
}

.ant-table-wrapper .ant-table-row:hover {
  cursor: pointer;
}

/* 权限开关样式 */
.permission-switch .ant-switch-checked {
  background-color: #52c41a;
}

/* 权限标签样式 */
.right-tag {
  margin-right: 8px;
}

.right-tag.parent {
  background-color: #1890ff;
  color: white;
}

.right-tag.child {
  background-color: #13c2c2;
  color: white;
}

/* 权限状态指示器 */
.right-status {
  display: inline-flex;
  align-items: center;
}

.right-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.right-status .status-dot.active {
  background-color: #52c41a;
}

.right-status .status-dot.inactive {
  background-color: #ff4d4f;
}

/* 操作按钮组样式 */
.right-action-buttons {
  display: flex;
  gap: 8px;
}

.right-action-buttons .ant-btn-dangerous {
  color: #ff4d4f;
  border-color: #ff4d4f;
}

.right-action-buttons .ant-btn-dangerous:hover {
  color: #fff;
  background-color: #ff4d4f;
}

/* 弹窗内容样式 */
.confirmation-content {
  margin: 16px 0;
}

.confirmation-content .warning-text {
  color: #ff4d4f;
  font-weight: 500;
}

/* 刷新按钮旋转动画 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.refresh-icon.spinning {
  animation: rotate 1s linear infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .right-list-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .right-list-header .right-actions {
    margin-top: 10px;
  }
}
